<template>
<div class="myAssociation">
  <van-nav-bar title="我的协会" left-div="返回" left-arrow @click-left="onClickLeft" fixed />
  <div style="height: 40px"></div>
  <div class="detailsss" @click="$router.push({ name: 'myDetail' })">
    <div class="bgdetail"><img src="@/assets/img/bg_name.png" alt=""></div>
    <div class="detailsss-title">王者荣耀</div>
    <div class="detailsss-item">
      <div class="detailsss-name">持有人</div>
      <div class="detailsss-desc">李白</div>
    </div>
    <div class="detailsss-item">
      <div class="detailsss-name">证件类型</div>
      <div class="detailsss-desc">有效</div>
    </div>
    <div class="detailsss-item" style="margin-bottom:60px">
      <div class="detailsss-name">入会时间</div>
      <div class="detailsss-desc">2010-02-01</div>
    </div>
  </div>
  <div class="detailsss" @click="$router.push({ name: 'myDetail'})">
    <div class="bgdetail"><img src="@/assets/img/bg_name.png" alt=""></div>
    <div class="detailsss-title">和平精英</div>
    <div class="detailsss-item">
      <div class="detailsss-name">持有人</div>
      <div class="detailsss-desc">李白</div>
    </div>
    <div class="detailsss-item">
      <div class="detailsss-name">证件类型</div>
      <div class="detailsss-desc">有效</div>
    </div>
    <div class="detailsss-item" style="margin-bottom:60px">
      <div class="detailsss-name">入会时间</div>
      <div class="detailsss-desc">2010-02-01</div>
    </div>
  </div>
</div>
</template>

<script>
export default {
  name: 'myAssociation',
  methods: {
    onClickLeft() {
      this.$router.push({
        name: 'main'
      })
    },
  },
}
</script>

<style>
.myAssociation {
  position: absolute;
  width: 375px;
  height: 100%;
  background-color: #ffffff
}

.detailsss {
  position: relative;
  width: 335px;
  background-image: url(../../assets/img/画框.jpg);
  background-position: 0 0;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: 100% 93%;
  border-radius: 8px;
  margin: 10px auto;
  padding: 15px;
  box-sizing: border-box;
}

.bgdetail {
  position: absolute;
  top: 24%;
  left: 50%;
  transform: translateX(-50%);
}

.bgdetail img {
  width: 120px;
  height: 50px
}

.detailsss-title {
  margin-top: 50px;
  font-size: 22px;
  font-weight: 500;
  color: #171A1F;
  line-height: 44px;
  text-align: center;
  margin-bottom: 15px;
}

.detailsss-title img {
  width: 25px;
  height: 25px
}

.detailsss-item {
  display: flex;
  flex-direction: row;
}

.detailsss-name {
  width: 48%;
  font-size: 13px;
  line-height: 20px;
  color: #6A6F7A;
  text-align: -webkit-right;
}

.detailsss-desc {
  font-size: 14px;
  line-height: 20px;
  color: #6A6F7A;
  width: 48%;
  margin-left: 4%;
}
</style>
